reverted previous change as it introduces the risk of not testing any
authorSven Neumann <sven@gimp.org>
Tue, 19 Feb 2008 12:58:13 +0000 (12:58 +0000)
committerSven Neumann <neo@src.gnome.org>
Tue, 19 Feb 2008 12:58:13 +0000 (12:58 +0000)
2008-02-19  Sven Neumann  <sven@gimp.org>

* babl/babl-fish-path.c (test_create): reverted previous change as
it introduces the risk of not testing any values between 0.0 and 1.0.

svn path=/trunk/; revision=280

ChangeLog
babl/babl-fish-path.c

index 66b0b5d3981a205ee24c4dfa89fa1cf3ec1cf254..f6d33a2e21bb3f9730453b2dbcdf8404b306d30d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-19  Sven Neumann  <sven@gimp.org>
+
+       * babl/babl-fish-path.c (test_create): reverted previous change as
+       it introduces the risk of not testing any values between 0.0 and 1.0.
+
 2008-02-19  Øyvind Kolås  <pippin@gimp.org>
 
        * babl/babl-fish-path.c: (test_create): make the testbuffer contain
index 785a8d30803a97a0fc33836efc781a588b5a6de0..666c38bcb48c298e94c973431bbf9af238ac2f27 100644 (file)
@@ -437,7 +437,7 @@ test_create (void)
   test = babl_malloc (sizeof (double) * test_pixels * 4);
 
   for (i = 0; i < test_pixels * 4; i++)
-    test [i] = ((double) random () / RAND_MAX) * 2 - 0.25;
+    test [i] = (double) random () / RAND_MAX;
 
   return test;
 }